﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta http-equiv="Access-Control-Allow-Origin" content="">
	<meta http-equiv="content-security-policy">
    
    <link rel="stylesheet" href="../css/mui.min.css" />
    <link rel="stylesheet" href="../css/iconfont.css" />
    <link rel="stylesheet" href="../css/base.css" />
    <link rel="stylesheet" href="../css/layout.css" />
    <link rel="stylesheet" href="../css/less.css" />


    <script src="../js/config.js"></script>
    <script type="text/javascript" src="../js/mui.min.js"></script>
    <script type="text/javascript" src="../js/app.js"></script>
    <title>标题</title>
    <script>
        (function ($, doc) {
            $.init({

            });

            $.ready(function () {
                BtnClick();
            });
            
            $.plusReady(function() {
                  	//处理返回事件
				var backButtonPress = 0;
				$.back = function(event) {
					backButtonPress++;
					if (backButtonPress > 1) {
						plus.runtime.quit();
					} else {
						plus.nativeUI.toast('再按一次退出应用');
					}
					setTimeout(function() {
						backButtonPress = 0;
					}, 1000);
					return false;
				};
			});
            
            
            function BtnClick() {
                //练习测试按钮点击
                var Btn111 = document.getElementById('Btn1_1_1');

                Btn111.addEventListener('tap', function (event) {
                    ShowTestList(0);
                });

                //模拟考试点击
                var Btn112 = document.getElementById('Btn1_1_2');

                Btn112.addEventListener('tap', function (event) {
                    ShowTest(0);
                });
            };
        }(mui, document));


        //打开章节列表，如果未登录则先要求登录
        //TypeID： 0小车科目一 1小车科目四 2货车科目一 3货车科目四 4客车科目一 5客车科目四
        function ShowTestList(TypeID) {
             localStorage.setItem("TypeID", TypeID);
                //openPage('test-list.html?r=' + Math.random(), 'test-list');
                openPage('test.html?r=' + Math.random(), 'test');
        }

        //打开考试页面
        //TypeID： 0小车科目一 1小车科目四 2货车科目一 3货车科目四 4客车科目一 5客车科目四
        function ShowTest(TypeID) {
            //textType： 1模拟考试 2练习 3测试
            localStorage.setItem("textType", 1);
            localStorage.setItem("ContentID", TypeID);
            localStorage.setItem("ContentName", "模拟考试");
            openPage('test.html?r=' + Math.random(), 'test');
        }

    </script>
</head>
<body>
  
	<header class="mui-bar mui-bar-nav">
		<h1 class="mui-title">标题</h1>
	</header>
	<div class="mui-content">
	    <div id="slider" class="mui-slider">
	        <div class="mui-slider-group mui-slider-loop">
	            <!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
	            <div class="mui-slider-item mui-slider-item-duplicate">
	                <a href="#">
	                    <img src="../images/banner1.jpg">
	                </a>
	            </div>
	            <!-- 第一张 -->
	            <div class="mui-slider-item">
	                <a href="#">
	                    <img src="../images/banner1.jpg">
	                </a>
	            </div>
	            <!-- 第二张 -->
	            <div class="mui-slider-item">
	                <a href="#">
	                    http://192.168.128.88:8020/weixin_ytjk/pages/index.html#
	                    <img src="../images/banner2.jpg">
	                </a>
	            </div>
	            <!-- 第三张 -->
	            <div class="mui-slider-item">
	                <a href="#">
	                    <img src="../images/banner3.jpg">
	                </a>
	            </div>
	
	            <!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
	            <div class="mui-slider-item mui-slider-item-duplicate">
	                <a href="#">
	                    <img src="../images/banner1.jpg">
	                </a>
	            </div>
	        </div>
	        <div class="mui-slider-indicator">
	            <div class="mui-indicator mui-active"></div>
	            <div class="mui-indicator"></div>
	            <div class="mui-indicator"></div>
	        </div>
	    </div>
	    <div class="skill-tab-content">
        <div id="item1" class="mui-control-content  mui-active">
            <div class="skill-wrap">
                <div class="tit"><strong>XXXX</strong><span>X1X2</span></div>
                <div class="dis-tab">
                    <dl class="dis-row">
                        <dd class="dis-cell">
                            <a id="Btn1_1_1">
                                <i class="iconfont icon-qiche"></i>
                                <div>技巧练习</div>
                                <p>练习、测试</p>
                            </a>
                        </dd>
                        <dd class="dis-cell">
                            <a id="Btn1_1_2">
                                <i class="iconfont icon-kaoshi"></i>
                                <div>模拟考试</div>
                                <p>仿真考试</p>
                            </a>
                        </dd>
                    </dl>
                </div>
            </div>
        </div>
    </div>
    </div>
    <script type="text/javascript" src="../../js/mui.min.js"></script>
    <script type="text/javascript" charset="utf-8">
		var slider = mui("#slider");
		slider.slider({	interval: 3000	});
    </script>	 

</body>

</html>
